package com.selen.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Selen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "LoginDTO", description = "登录DTO")
public class LoginDTO implements Serializable {
    @NotNull(message = "登录账户不能为空")
    @Schema(description = "登陆账户", example = "admin")
    private String username;

    @NotNull(message = "登录密码不能为空")
    @Schema(description = "登陆密码", example = "admin")
    private String password;
}
